<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<title>编辑管理员</title>
		<link href="${ctxStatic}/scripts/artdialog/ui-dialog.css" rel="stylesheet" type="text/css" />
		<link href="${ctxStatic}/admin/skins/default/style.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="${ctxStatic}/scripts/jquery/jquery-1.11.2.min.js"></script>
		<script type="text/javascript" src="${ctxStatic}/scripts/jquery/Validform_v5.3.2_min.js"></script>
		<script type="text/javascript" src="${ctxStatic}/scripts/artdialog/dialog-plus-min.js"></script>
		<script type="text/javascript" charset="utf-8" src="${ctxStatic}/admin/scripts/laymain.js"></script>
		<script type="text/javascript" charset="utf-8" src="${ctxStatic}/admin/scripts/common.js"></script>
		<script type="text/javascript">
			$(function() {
				//初始化表单验证
				$("#inputForm").initValidform();
			});
		</script>
	</head>
	
	<body class="mainbody">
		<form:form id="inputForm" modelAttribute="user" action="${ctx}/test/save" method="post" class="form-horizontal">
			<form:hidden path="id"/>
			<!--导航栏-->
			<div class="location">
				<a href="${ctx}/user/list" class="back"><i></i><span>返回列表页</span></a>
				<a href="${ctx}/center" class="home"><i></i><span>首页</span></a> 
				<i class="arrow"></i> 
				<a href="${ctx}/user/form?id=${user.id}"><span>管理员</span></a>
				<shiro:hasPermission name="qd:user:edit"><i class="arrow"></i><span>${not empty user.id ? '修改':'添加' }管理员</span></shiro:hasPermission>
			</div>	
			<div class="line10"></div>
			<!--/导航栏-->
	
			<!--内容-->
			<div id="floatHead" class="content-tab-wrap">
				<div class="content-tab">
					<div class="content-tab-ul-wrap">
						<ul>
							<li><a class="selected" href="javascript:;">管理员信息</a></li>
						</ul>
					</div>
				</div>
			</div>
	
			<div class="tab-content">
				<dl>
					<dt>登录名</dt>
					<dd>
						<form:input path="loginName" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入登录名" errormsg="请输入登录名" sucmsg=" "/>
						<span class="Validform_checktip">*请输入登录名</span>
					</dd>
				</dl>
				<dl>
					<dt>密码</dt>
					<dd>
						<form:input path="password" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入密码" errormsg="请输入密码" sucmsg=" "/>
						<span class="Validform_checktip">*请输入密码</span>
					</dd>
				</dl>
				<dl>
					<dt>工号</dt>
					<dd>
						<form:input path="no" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入工号" errormsg="请输入工号" sucmsg=" "/>
						<span class="Validform_checktip">*请输入工号</span>
					</dd>
				</dl>
				<dl>
					<dt>姓名</dt>
					<dd>
						<form:input path="name" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入姓名" errormsg="请输入姓名" sucmsg=" "/>
						<span class="Validform_checktip">*请输入姓名</span>
					</dd>
				</dl>
				<dl>
					<dt>邮箱</dt>
					<dd>
						<form:input path="email" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入邮箱" errormsg="请输入邮箱" sucmsg=" "/>
						<span class="Validform_checktip">*请输入邮箱</span>
					</dd>
				</dl>
				<dl>
					<dt>电话</dt>
					<dd>
						<form:input path="phone" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入电话" errormsg="请输入电话" sucmsg=" "/>
						<span class="Validform_checktip">*请输入电话</span>
					</dd>
				</dl>
				<dl>
					<dt>手机</dt>
					<dd>
						<form:input path="mobile" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入手机" errormsg="请输入手机" sucmsg=" "/>
						<span class="Validform_checktip">*请输入手机</span>
					</dd>
				</dl>
				<dl>
					<dt>用户类型</dt>
					<dd>
						<form:input path="userType" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入用户类型" errormsg="请输入用户类型" sucmsg=" "/>
						<span class="Validform_checktip">*请输入用户类型</span>
					</dd>
				</dl>
			<!--/内容-->
	</div>
			<!--工具栏-->
			<div class="page-footer">
				<div class="btn-wrap">
					<input type="submit" name="btnSubmit" value="提交保存" id="btnSubmit" class="btn" /> 
					<input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript:history.back(-1);" />
				</div>
			</div>
			<!--/工具栏-->
		</form:form>
	</body>
</html>

